Repository navigation
FOUR-32426 | Enable Task Preview on Saved-Search To Do and Self Service Lists - #9121
mcraeteisha wants to merge 2 commits into
Conversation
This commit updates task row button visibility to evaluate per-row conditions, so preview/open actions respect task status instead of a URL-only check. Preview is now hidden for closed tasks while remaining available for active/self-service tasks, including saved searches. It also aligns task cells and separators visually and preserves the task status needed for row-level actions.
PR SummaryLow Risk Overview Preview visibility is driven by Row layout fixes extra vertical space on Completed/Self Service lists (no Due Date column): status/HTML cell wrappers use Reviewed by Cursor Bugbot for commit a7bc790. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a5d22c8. Configure here.
|
QA server K8S was successfully deployed https://tenant-1.ci-34f2800301.engk8s.processmaker.net |
Removed the saved-search gate that hid the preview pane for active and self-service tasks, while keeping completed tasks excluded unless the task list explicitly allows preview actions.
|






Issue
Ticket: FOUR-32426
Self-service and in-progress (To Do) tasks on
/tasks/saved-searchesdid not show the preview pane option. Users could not open the side preview from those saved searches the way they can from the main task list.TasksList.vueexcluded regular saved-search URLs from preview: it did not mounttasks-previewwhen the URL containedsaved-searches, and it hid the Preview row action with the same check. That blocked preview for active and self-service tasks on those pages. Completed tasks remain out of preview scope (task_status === "CLOSED").Also, on Completed and Self Service saved searches (no Due Date column), Status/date cell content was wrapped in a block-level
divnext to the row-action anchor. That stacked below theinline-blockbutton box and added empty vertical space in the row. Due Date columns already use inline spans, so they did not show the same stacking.Unaffected by design: Open Case / Open Task actions remain available; completed-task preview stays hidden.
Solution
processmaker
resources/js/tasks/components/TasksList.vuetasks-preview(removedverifyURL('saved-searches')gate).shouldShowPreviewButton(row)(task_status !== "CLOSED"), including on saved searches.record.task_statusbeforeformatStatusreplacesstatuswith badge HTML.previewTasks()with the same eligibility helper.inline-blockwithvertical-align: middleso last-column Status/date content shares a line with the row-action anchor (same layout model as Due Date).formatStatusbadge HTML to a single-line span.resources/js/tasks/components/TaskListRowButtons.vueshowas a boolean or per-row function viashouldShow(button).vertical-align: middleon.pm-task-row-buttonsto align with adjacent cell content.How To Test
Manual Tests
/tasks/saved-searches→ To Do with an in-progress task; hover the row and use Preview.CLOSED) tasks.ci:deploy
Code Review Checklist